<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @property int $id
 * @property int $pid 父类
 * @property string $createtime
 * @property string $image 图片
 * @property string $name 名称
 * @property-read \app\model\ScoreGoodsSku[] $sku
 * @mixin \think\Model
 */
class ScoreGoodsSku extends Model
{
    protected $createTime = 'createtime';

    function sku()
    {
        return $this->hasMany(ScoreGoodsSku::class,'pid');
    }
}
